-- GENERATED SPELL FOR [Blacksting] --


function spell0_18283(pUnit, Event) --@Black Blood,n/a--
pUnit:FullCastSpellOnTarget(35331,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18283', 2000, 1)
end

function spell1_18283(pUnit, Event) --@Fatal Sting,n/a--
pUnit:FullCastSpellOnTarget(17170,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18283', 12000, 1)
end

function Sorts_18283(pUnit, Event)
local choix_sorts_18283 = math.random(0, 1)
if choix_sorts_18283 == 0 then
pUnit:RegisterEvent('spell0_18283', 1, 1)
end
if choix_sorts_18283 == 1 then
pUnit:RegisterEvent('spell1_18283', 1, 1)
end
end

function mob18283_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18283', math.random(1500, 3000), 1)
end

function mob18283_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18283_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18283_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18283, 1, 'mob18283_Action')
RegisterUnitEvent(18283, 2, 'mob18283_Leave')
RegisterUnitEvent(18283, 3, 'mob18283_Kill')
RegisterUnitEvent(18283, 4, 'mob18283_Die')
